package main

import "fmt"

type MyInt int

type Student struct {
	name   string
	age    int
	gender string
	score  float64
}

func main() {
	//var i, j MyInt
	i, j := 10, 20
	fmt.Println("i + j =", i+j)

	lily := Student{
		name:   "Lily",
		age:    20,
		gender: "女生",
		score:  80, //最后一个元素后面必须加上逗号,如果不加括号，则必须与}同一行
	}

	fmt.Println("lily: ", lily.name, lily.age, lily.gender, lily.score)

	fmt.Println(lily)
	ptr := &lily
	fmt.Println("lily: ", (*ptr).name, ptr.age, ptr.gender, ptr.score)
}
